import axios from '@u/request'
const getDetectorList = (params = {}) => axios.get('/equipment/v1/EquipStatus/getDeviceStatusTableSource', {params}) // 智能开关列表
const getDetectorOfflineNumber = (params = {}) => axios.post('/tag/value/tagStatusStaCount', params)
const getWindList = (params = {}) => axios.get('/equipment/v1/EquipStatus/getDeviceStatusTableSource', {params}) // 智能开关列表

const getWindOfflineNumber = (params = {}) => axios.post('/tag/value/tagStatusStaCount', params)
const getEquipmentList = (params = {}) => axios.get('/equipment/v1/equipInfo/getEquipInfoStateList', {params})

const getOffline = (params = {}) => axios.post('/tag/value/tagStatusStaCount', params)
const getSwitchOnly = (params = {}) => axios.get('/equipment/v1/EquipStatus/getDeviceStatusTableSource', {params})

// getControlStrategyList, getLoopstate, 
const getControlStrategyList = (params = {}) => axios.get('/equipment/v2/controlStrategy/list', {params})
const getLoopstate = (params = {}) => axios.get('/equipment/v1/equipInfo/getEquipInfoStateList', {params})

export {
  getDetectorList,
  getDetectorOfflineNumber,
  getWindList,
  getWindOfflineNumber,
  getEquipmentList,
  getOffline,
  getSwitchOnly,
  getControlStrategyList,
  getLoopstate
}

